<?php
	$fields = array();
	$id		= EbController::$request->getData("id");
	
	if (!is_null($id))
	{
		$Ddd_model = EbModel::getModel('JQuery','Ddd');
		$Ddd = $Ddd_model->selectById_1($id);
	}


	$fields []= (object) array('label' => 'sdsd','name' => 'sdsd');
	$fields []= (object) array('label' => 'sdsssss','name' => 'sdsssss');

	if (isset($Ddd))
	{
		$fields[0]->value = $Ddd->sdsd;
		$fields[1]->value = $Ddd->sdsssss;
	}
		
	eb_widget('form',array('action' => '/JQuery/EditDdd.do','fields' => $fields));

?>